(Man-getpage-in-background): Use shell-file-name
authorEli Zaretskii <eliz@gnu.org>
Tue, 11 May 2004 09:28:56 +0000 (09:28 +0000)
committerEli Zaretskii <eliz@gnu.org>
Tue, 11 May 2004 09:28:56 +0000 (09:28 +0000)
and shell-command-switch variables instead of hard-coded
values.

lisp/man.el

index 7222c1bad15428e35f0df3a21f552b43241d559c..983be4a91cc3f5716ce7992846562226d0a53df0 100644 (file)
@@ -732,11 +732,13 @@ all sections related to a subject, put something appropriate into the
        (setenv "GROFF_NO_SGR" "1")
        (if (fboundp 'start-process)
            (set-process-sentinel
-            (start-process manual-program buffer "sh" "-c"
+            (start-process manual-program buffer
+                           shell-file-name shell-command-switch
                            (format (Man-build-man-command) man-args))
             'Man-bgproc-sentinel)
          (let ((exit-status
-                (call-process shell-file-name nil (list buffer nil) nil "-c"
+                (call-process shell-file-name nil (list buffer nil) nil
+                              shell-command-switch
                               (format (Man-build-man-command) man-args)))
                (msg ""))
            (or (and (numberp exit-status)